import request from '@/utils/request'

// 查询重点上访人员列表
export function listKey_petitioner(query) {
  return request({
    url: '/report/key_petitioner/list',
    method: 'get',
    params: query
  })
}

// 查询重点上访人员详细
export function getKey_petitioner(id) {
  return request({
    url: '/report/key_petitioner/' + id,
    method: 'get'
  })
}

// 新增重点上访人员
export function addKey_petitioner(data) {
  return request({
    url: '/report/key_petitioner',
    method: 'post',
    data: data
  })
}

// 修改重点上访人员
export function updateKey_petitioner(data) {
  return request({
    url: '/report/key_petitioner',
    method: 'put',
    data: data
  })
}

// 删除重点上访人员
export function delKey_petitioner(id) {
  return request({
    url: '/report/key_petitioner/' + id,
    method: 'delete'
  })
}
